CREATE TABLE [dbo].[UspevDocument]
(
[idUspevDocs] [int] NOT NULL IDENTITY(1, 1),
[ik_zach] [int] NOT NULL,
[ik_upContent] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UspevDocument] ADD CONSTRAINT [PK_UspevDocument] PRIMARY KEY CLUSTERED  ([idUspevDocs]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UspevDocument] ADD CONSTRAINT [IX_UspevDocument] UNIQUE NONCLUSTERED  ([ik_upContent], [ik_zach]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UspevDocument] ADD CONSTRAINT [FK_UspevDocument_Content_UchPl] FOREIGN KEY ([ik_upContent]) REFERENCES [dbo].[Content_UchPl] ([ik_upContent])
GO
ALTER TABLE [dbo].[UspevDocument] ADD CONSTRAINT [FK_UspevDocument_Zach] FOREIGN KEY ([ik_zach]) REFERENCES [dbo].[Zach] ([Ik_zach])
GO
